package com.kkyy.msystem.service.impl;

import com.kkyy.msystem.dao.RegistDao;
import com.kkyy.msystem.entity.UsersEntity;
import com.kkyy.msystem.service.RegistService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegistServiceImpl implements RegistService {
    @Autowired
    RegistDao registDao;

    @Override
    public UsersEntity getOneByUsername(String username) {
        return registDao.selectOneByUsername(username);
    }

    @Override
    public void insertOne(UsersEntity usersEntity) {
        registDao.insertOne(usersEntity);
    }
}